package com.young.core.manager;

import com.young.core.domain.EventDO;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;

public interface EventManager {

    @Transactional
    void insert(EventDO event);

    @Transactional
    void delete(int id);

    @Transactional
    Collection<EventDO> fetch(int size);
}
